﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListService.ascx.cs"
    Inherits="ServicesDirectory.UserControl.ListService" %>
<%@ Register Src="MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div class="bgManager">
            <div class="TitleManarer">
                Service List
            </div>
            <div class="sortList">
                <span>
                    <asp:LinkButton runat="server" ForeColor="Black" ID="lbtAll" Text="All"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ForeColor="Black" ID="lbt09" Text="0-9"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ForeColor="Black" ID="lbtA" Text="A B C D E"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ForeColor="Black" ID="lbtF" Text="F G H I J"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ForeColor="Black" ID="lbtK" Text="K L M N"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ForeColor="Black" ID="lbtO" Text="O P Q R"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ForeColor="Black" ID="lbtS" Text="S T U V"></asp:LinkButton>
                </span>| <span>
                    <asp:LinkButton runat="server" ForeColor="Black" ID="lbtW" Text="W X Y Z"></asp:LinkButton>
                </span>
                <div class="topbutton">
                    <asp:Button runat="server" CssClass="button" ID="btnCopy" Text="Copy" />
                    <asp:Button CssClass="button" runat="server" ID="cmdCreate" Text="Create" />
                    <asp:CheckBox runat="server" AutoPostBack="True" ID="chkInactive" Text="Include In-Active" />
                </div>
            </div>
            <div class="spaceManager">
            </div>
            <div class="contentGrid">
                <div class="hearderGrid">
                    <div class="ServiceHeaderCol0">
                        &nbsp;
                    </div>
                    <div class="ServiceHeaderCol1">
                        <asp:LinkButton runat="server" ID="lbtServiceName" Text="Service Name"></asp:LinkButton>
                    </div>
                    <div class="ServiceHeaderCol2">
                        <asp:LinkButton runat="server" ID="lbtDescription" Text="Description"></asp:LinkButton>
                    </div>
                    <div class="ServiceHeaderCol3">
                        <asp:LinkButton runat="server" ID="lbtServiceType" Text="Service type"></asp:LinkButton>
                    </div>
                    <div class="ServiceHeaderCol4">
                        <asp:LinkButton runat="server" ID="lbtContact" Text="Contact"></asp:LinkButton>
                    </div>
                    <div class="ServiceHeaderCol5">
                        <asp:LinkButton runat="server" ID="lbtIsactive" Text="Is Active?"></asp:LinkButton>
                    </div>
                </div>
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <div class="rowGrid">
                            <div class="ServiceContebtCol0">
                                <asp:RadioButton runat="server" GroupName="ClickOne" ID="rbtSelect" />
                            </div>
                            <div class="ServiceContentCol1">
                                <asp:LinkButton ID="lbtName" runat="server" ForeColor="#0000FF" CommandName="Edit"
                                    ToolTip='<%#Eval("ServiceName")%>' CommandArgument='<%#Eval("ServiceId") %>'
                                    Text='<%#Eval("ServiceName").ToString().Length > 11 ? Eval("ServiceName").ToString().Substring(0,11)+"..." : Eval("ServiceName")%>'></asp:LinkButton>
                            </div>
                            <div class="ServiceContentCol2">
                                <%#Eval("ShortDescription").ToString().Length > 23 ? Eval("ShortDescription").ToString().Substring(0, 23) + "..." : Eval("ShortDescription")%></div>
                            <div class="ServiceContentCol3">
                                <asp:Label ID="lblServiceType" runat="server" Text='<%#Eval("ServiceType") %>'></asp:Label>
                            </div>
                            <div class="ServiceContentCol4">
                                <asp:Label ID="lblContact" runat="server" Text='<%#Eval("ContactId") %>'></asp:Label>
                            </div>
                            <div class="ServiceContentCol5">
                                <asp:Label ID="lblIsactive" runat="server" Text='<%#Eval("ServiceActive") %>'></asp:Label>
                            </div>
                            <asp:HiddenField ID="hdfServiceId" runat="server" Value='<%#Eval("ServiceId") %>' />
                        </div>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <div class="alterRowGrid">
                            <div class="ServiceContebtCol0">
                                <asp:RadioButton runat="server" GroupName="ClickOne" ID="rbtSelect" />
                            </div>
                            <div class="ServiceContentCol1">
                                <asp:LinkButton ID="lbtName" runat="server" ForeColor="#0000FF" CommandName="Edit"
                                    CommandArgument='<%#Eval("ServiceId") %>' ToolTip='<%#Eval("ServiceName")%>'
                                    Text='<%#Eval("ServiceName").ToString().Length > 11 ? Eval("ServiceName").ToString().Substring(0,11)+"..." : Eval("ServiceName")%>'></asp:LinkButton>
                            </div>
                            <div class="ServiceContentCol2">
                                <%#Eval("ShortDescription").ToString().Length > 23 ? Eval("ShortDescription").ToString().Substring(0, 23) + "..." : Eval("ShortDescription")%></div>
                            <div class="ServiceContentCol3">
                                <asp:Label ID="lblServiceType" runat="server" Text='<%#Eval("ServiceType") %>'></asp:Label>
                            </div>
                            <div class="ServiceContentCol4">
                                <asp:Label ID="lblContact" runat="server" Text='<%#Eval("ContactId") %>'></asp:Label>
                            </div>
                            <div class="ServiceContentCol5">
                                <asp:Label ID="lblIsactive" runat="server" Text='<%#Eval("ServiceActive") %>'></asp:Label>
                            </div>
                            <asp:HiddenField ID="hdfServiceId" runat="server" Value='<%#Eval("ServiceId") %>' />
                        </div>
                    </AlternatingItemTemplate>
                </asp:Repeater>
                <asp:Panel ID="pnNoRecord" runat="server" CssClass="alterRowGrid" Visible="false">
                    <center>
                        No record found!</center>
                </asp:Panel>
                <div class="spaceManager">
                </div>
                <asp:Panel ID="pnPaging" Visible="True" runat="server">
                    <div class="PagingList">
                        <span>
                            <asp:Button runat="server" CssClass="backAllList" ID="cmdBackAll" />
                        </span><span>
                            <asp:Button runat="server" CssClass="backList" ID="cmdBacklist" /></span> <span style="padding-left: 5px;">
                                Page</span> <span style="padding-left: 5px;">
                                    <asp:TextBox Text="1" runat="server" Width="20px" ID="txtPageNumber"></asp:TextBox></span>
                        <span>of</span> <span>
                            <asp:Label runat="server" Text="1" ID="lblTotalPage"></asp:Label></span> <span>
                                <asp:Button runat="server" CssClass="nextAll" ID="cmdNextAll" />
                            </span><span>
                                <asp:Button runat="server" CssClass="nextList" ID="cmdNext" />
                            </span>
                    </div>
                </asp:Panel>
            </div>
            <div class="spaceManager">
            </div>
            <asp:Panel runat="server" ID="pnMessage" CssClass="web_dialog" Visible="false">
                <uc1:MessageBox ID="MessageBox1" runat="server" />
            </asp:Panel>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
